Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: handle private traits better #23852

Merged
merged 1 commit into from
Mar 31, 2015
Merged

lint: handle private traits better #23852

merged 1 commit into from
Mar 31, 2015

Conversation

emberian
Copy link
Member

Due to a long-standing conservative approach to trait exports, all traits are
considered exported. However, the missing_docs lint uses the export map to
determine if something is public and ought to have documentation. This commit
modifies the lint to check if traits are private before emitting the warning.

Closes #11592

@rust-highfive
Copy link
Collaborator

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@Manishearth
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Mar 30, 2015

📌 Commit a054455 has been approved by Manishearth

bors added a commit that referenced this pull request Mar 30, 2015
@bors
Copy link
Contributor

bors commented Mar 30, 2015

⌛ Testing commit a054455 with merge b49ff1e...

@bors
Copy link
Contributor

bors commented Mar 30, 2015

💔 Test failed - auto-mac-32-opt

Due to a long-standing conservative approach to trait exports, all traits are
considered exported. However, the missing_docs lint uses the export map to
determine if something is public and ought to have documentation. This commit
modifies the lint to check if traits are private before emitting the warning.

Closes #11592
@emberian
Copy link
Member Author

@bors: r=Manishearth rollup

@bors
Copy link
Contributor

bors commented Mar 30, 2015

📌 Commit 31a5285 has been approved by Manishearth

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 31, 2015
Due to a long-standing conservative approach to trait exports, all traits are
considered exported. However, the missing_docs lint uses the export map to
determine if something is public and ought to have documentation. This commit
modifies the lint to check if traits are private before emitting the warning.

Closes rust-lang#11592
bors added a commit that referenced this pull request Mar 31, 2015
@bors bors merged commit 31a5285 into rust-lang:master Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing_doc lint expects docs on private traits
5 participants